<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/weixi/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/weixi/Public/css/nivo-slider.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/bar/bar.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/dark/dark.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/default/default.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/light/light.css" type="text/css">
    <title>收货人</title>
    <style>
        *{
            box-sizing: border-box;     /*从IE8开始兼容*/
            text-size-adjust:none;
        }
        img{
            max-width: 100%;
        }
        ul,li{
            list-style: none;margin: 0;padding:0;
        }
        html,body, .container{
            height:100%;margin:0;padding:0;
        }
        .container{
            max-width: 640px;min-width: 320px;margin: auto;
        }
        /*header{*/
        /*height:8%; display:flex;background: #3f3f3f;width: 100%;color: white;font-size: 20px;*/
        /*}*/
        /*header>div{*/
        /*text-align: center; height: 100%;align-items: center; display:flex;*/
        /*}*/
        section{
            height:91%;width: 100%;overflow: scroll;
        }
        .section-header{
            height:8%;background: #c53b13;display:flex;
        }
        .section-content{
            min-height: 800px
        }
        .nivoSlider img{
            width: 100%;
        }
        .clear{
            clear:both;
        }
        footer{
            height:9%; width: 100%;border-top:1px #b2b2b2 solid ;display:flex;color: grey;
        }
        footer>div{
            width: 25%;height: 100%;
        }
        footer img{
            margin-top: 5%;margin-left:40% ;
        }
        .footer-member a:link{
            color: grey;text-decoration:none;font-size:13px;
        }
        /*.footer-member a:visited {*/
        /*color:#304c36;text-decoration:none;font-size:13px;*/
        /*}*/
        .footer-member  a:hover {
            color: #2536ff;font-size:13px;
        }


    </style>
    <script src="/weixi/Public/js/jquery-1.11.1.min.js"></script>
    <script src="/weixi/Public/js/bootstrap.min.js"></script>
    <script src="/weixi/Public/js/jquery.nivo.slider.js" type="text/javascript" charset="UTF-8" ></script>
    <script type="text/javascript">
        $(function () {
            $(".nivoSlider").nivoSlider();
        })
    </script>
</head>
<body>
<div class="container">
    <section>
        <div class="section-header">
            <div style="width: 16%;height: 100%;display: flex"><span class="glyphicon glyphicon-chevron-left" style="color: white;display: inline-block;margin: auto;font-size: 20px"></span></div>
            <div style="width: 70%;height: 100%;color: white;display: flex"><sapn style="display: inline-block;margin: auto;font-size: 20px">收货地址</sapn></div>
        </div>
        <div class="section-content" >
            <?php if(empty($name)){ ?>
                <div style="text-align:center;font-size: 14px;">你没有收货地址</div>
                <a href="<?php echo U('Mains/oredsw');?>"><div style="width: 100%;border-top:1px #e2e2e2 solid;height: 50px;display: flex;border-bottom:1px #e2e2e2 solid;margin-top: 20px  ">
                    <div style="width: 15%;padding-left: 10px"></div>
                    <div style="width: 70%;"><span style="display: inline-block;width: 100%;text-align:center; line-height: 50px;margin-left: 5px;font-size: 16px;">新增收货地址</span></div>
                </div></a>
            <?php }else{ ?>
            <form action="<?php echo U('purchase/ert');?>" method="post">
                 <?php if(is_array($name)): foreach($name as $key=>$names): ?><span style="color: red;">请选择</span>：<input style="padding-top: 2px;" type='radio' name="ckb" value ="<?php echo ($names["dia"]); ?>" />
                <div style="width: 100%;height: 50px;display: flex;border-bottom:1px #e2e2e2 solid;border-top: 1px #e2e2e2 solid;margin-top: 10px">
                    <div style="width: 70%;"><span style="display: inline-block;width: 100%;line-height: 50px;margin-left: 5px;font-size: 16px;">收货人:<?php echo ($names["names"]); ?></span></div>
                </div>
                <div style="width: 100%;height: 50px;display: flex;border-bottom:1px #e2e2e2 solid;">
                    <div style="width: 70%;"><span style="display: inline-block;width: 100%;line-height: 50px;margin-left: 5px;font-size: 16px;">收货人电话:<?php echo ($names["names"]); ?></span></div>
                </div>
                <div style="width: 100%;height: 50px;display: flex;border-bottom:1px #e2e2e2 solid;">
                    <div style="width: 70%;"><span style="display: inline-block;width: 100%;line-height: 50px;margin-left: 5px;font-size: 16px;">收货人地址:<?php echo ($names["address"]); ?></span></div>
                </div>
                <div style="width: 100%;height: 50px;display: flex;border-bottom:1px #e2e2e2 solid;">
                    <div style="width: 70%;"><span style="display: inline-block;width: 100%;line-height: 50px;margin-left: 5px;font-size: 16px;">收货人邮政编码:<?php echo ($names["you"]); ?></span></div>
                </div><?php endforeach; endif; ?>
                <input type="hidden" value="<?php echo ($name[0]['price']); ?>" name="price">
                <input type="hidden" value="<?php echo ($name[0]['idit']); ?>" name="id">
                <div style="width:  100%;height: 35px;margin-top: 30px">
                    <button type="submit" style="width: 100%;height: 35px;background: #ff5458;color: white;text-align: center;line-height: 30px;font-size: 16px;margin: auto">付款</button>
                </div>
            </form>
            <?php } ?>
        </div>
    </section>
    <footer>
        <div class="footer-member"><a href="#"><img src="/weixi/Public/img/img2-1.png"><div style="text-align: center;font-size: 14px;margin-top: 5%">首页</div></a></div>
        <div class="footer-member"><a href="<?php echo U('Classify/index');?>"><img src="/weixi/Public/img/img2-2.png"><div style="text-align: center;font-size: 14px;margin-top: 5%">分类</div></a></div>
        <div class="footer-member"><a href="<?php echo U('Shopping/index');?>"><span class="glyphicon glyphicon-shopping-cart" style="color: #a2a2a2;font-size: 24px;display: block;margin-top: 5%;margin-left:35% ;" ></span>
            <div style="text-align: center;font-size: 14px;margin-top: 5%">购物车</div></a>
        </div>
        <div class="footer-member"><a href="<?php echo U('Main/member');?>" ><img src="/weixi/Public/img/img2-4.png" ><div style="text-align: center;font-size: 14px;margin-top: 5%">会员中心</div></a></div>
    </footer>
</div>
<script src="/weixi/Public/js/vue.min.js"></script>
<script src="/weixi/Public/js/vue-resource.min.js"></script>
<script src="/weixi/Public/em-ui/index.js"></script>
<script src="/weixi/Public/js/jquery-1.11.1.min.js"></script>
<script src="/weixi/Public/js/bootstrap.min.js"></script>

</body>
</html>